package com.gqz.equip.mapstruct;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.equip.entity.TEnWzCrkOrderEntity;
import com.gqz.equip.vo.TEnWzCrkOrderVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @ClassName TEnWzCrkOrderMapstruct
 * @Description 新能源-物资-出入库工单表
 * @Date 2022-10-27 14:15:03
 * @Version 1.0
 * @Author input you name
 */
@Mapper(componentModel = "spring", imports = {})
@Component
public interface TEnWzCrkOrderMapstruct {

    @Mapping(target = "sbztbm", ignore = true)
    @Mapping(target = "sblxbm", ignore = true)
    @Mapping(target = "djrq_to", ignore = true)
    @Mapping(target = "ccbm", ignore = true)
    TEnWzCrkOrderVo toVo(TEnWzCrkOrderEntity entity);

    List<TEnWzCrkOrderVo> toVos(List<TEnWzCrkOrderEntity> entity);

    @Mapping(target = "optimizeJoinOfCountSql", ignore = true)
    Page<TEnWzCrkOrderVo> toVos(Page<TEnWzCrkOrderEntity> entity);

    TEnWzCrkOrderEntity toEntity(TEnWzCrkOrderVo vo);

    List<TEnWzCrkOrderEntity> toEntitys(List<TEnWzCrkOrderVo> vos);

}
